# 主界面实现
from PySide2.QtWidgets import QMainWindow
from forms.uipy.UI_main_area import Ui_MainArea
from forms.uipyimpl.LedgerImpl import LedgerImpl


class MainAreaWindowImpl(QMainWindow, Ui_MainArea):
    def __init__(self):
        super().__init__()
        self.setupUi(self)

        # **************************** 工具部分 ******************************* #
        ## 台账
        self.ledger.triggered.connect(lambda: self.setCentralWidget(LedgerImpl()))
